实体的线型名属性
__property BSTR Linetype;
例如: 取到实体的真正线型。
MxDrawEntity ent = (MxDrawEntity)com; if (ent.LineType == "ByLayer") { MxDrawDatabase database = (MxDrawDatabase) axMxDrawX1.GetDatabase(); MxDrawLayerTableRecord rec = database.GetLayerTable().GetAt(ent.Layer); MxDrawLinetypeTableRecord lineTypeRec = (MxDrawLinetypeTableRecord)axMxDrawX1.ObjectIdToObject(rec.LinetypeObjectId); MessageBox.Show(lineTypeRec.Name); } else { MessageBox.Show(ent.LineType); }